﻿using CTP.CRM.Repository.Enum;
using CTP.CRM.Repository.Enum;

namespace CTP.CRM.Application.Dtos.Logger
{
    /// <summary>
    /// 添加日志
    /// </summary>
    public class AddLoggerInput
    {
        /// <summary>
        /// 关联表类型
        /// </summary>
        public TableTypeEnums TableType { get; set; }

        /// <summary>
        /// 关联表id
        /// </summary>
        public string Id { get; set; }

        /// <summary>
        /// 关联表外键id
        /// </summary>
        public string ForeignKeyId { get; set; }

        /// <summary>
        /// 日志类型
        /// </summary>
        public LogType LogType { get; set; }

        /// <summary>
        /// 日志内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime OptionTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 操作人姓名
        /// </summary>
        public string UserName { get; set; } = "系统";

        /// <summary>
        /// 操作人id
        /// </summary>
        public int UserId { get; set; } = 0;

        /// <summary>
        /// 操作人账号
        /// </summary>
        public string UserAccount { get; set; } = "";
    }
}
